WpWax\Directorist\Gutenberg\Block_Template_Utils S

Total Complexity 43
Dependencies 6
Dependents 1
Total lines 303
Lines of code 156
Logical lines of code 94
Comment lines 108
Methods 11
Properties 0

Methods 11

Method Rating Maintainability Complexity Lines of code
gutenberg_build_template_result_from_post()
A
47 7 35
gutenberg_build_template_result_from_file()
S
51 6 23
gutenberg_inject_theme_attribute_in_content()
S
53 6 22
gutenberg_flatten_blocks()
S
56 5 20
create_new_block_template_object()
S
57 4 15
supports_block_templates()
S
65 5 9
gutenberg_get_template_paths()
S
62 3 11
convert_slug_to_title()
S
69 2 6
theme_has_template()
S
74 2 4
theme_has_template_part()
S
74 2 4
generate_template_slug_from_path()
S
68 1 7